package com.example.cicdcenter.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: Mr.Liu
 * @create: 2025-04-30 20:43
 **/
@RestController
@RequestMapping("cicd")
public class CicdController {

    @GetMapping("test")
    public String test() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return "当前时间: " + dateFormat.format(new Date());
    }
}
